#define  _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	char ch[105] = { 0 };
	int prime[] = { 2,3,5,7,11,13,17,19,23 };
	int arr[26] = { 0 };
	scanf("%s", ch);
	int i = 0;
	while (ch[i] != '\0')
	{
		arr[ch[i] - 'a']++;
		i++;
	}
	int max = 0;
	int min = 100;
	for (i = 0; i < 26; i++)
	{
		if (arr[i] != 0)
		{
			max = ((max >= arr[i]) ? max : arr[i]);
			min = ((min <= arr[i]) ? min : arr[i]);
		}
	}
	for (i = 0; i < 9; i++)
	{
		if (max - min == prime[i])
		{
			printf("Lucky Word\n%d", max - min);
			return 0;
		}
	}
	printf("No Answer\n0");
	return 0;
}